package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {

    void add(OrderSetting orderSetting);

    Long getCountByOrderDate(Date orderDate);

    void updateByOrderDate(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);

    //根据预约日期查询预约设置信息
    OrderSetting findByOrderDate(Date orderDate);

    //更新可预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);


    /*
     * 定时清理本月以前预约设置历史数据
     * */
    void clearOldOrderSetting(String firstDayOfThisMonth);
}
